import { OnGatewayConnection, SubscribeMessage, WebSocketGateway } from '@nestjs/websockets';
import { Request } from 'express';
import { setupWSConnection } from 'src/yjs-postgresql/utils';
import type { WebSocket } from 'ws';

@WebSocketGateway({
  path: "ws-yjs",
})
export class WsYjsGateway implements OnGatewayConnection {
  handleConnection(connetion: WebSocket, request: Request) {
    setupWSConnection(connetion, request)
  }
  
}
